package com.company.behavioral.command_pattern.demo1.client;

import com.company.behavioral.command_pattern.demo1.command.Command;
import com.company.behavioral.command_pattern.demo1.concrete_command.ExitCommand;
import com.company.behavioral.command_pattern.demo1.invoker.FunctionButton;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/9/2 16:31
 **/
public class Client {
    public static void main(String[] args) {
        FunctionButton fb = new FunctionButton();
        Command command = new ExitCommand();

        fb.setCommand(command);
        fb.click();
    }
}
